package PackageGeometry;

public class Circle extends Geometry {

    private double radius;

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }


    @Override
    public double calculateArea() {
        return PI * radius * radius;
    }

    @Override
    public double calculateCircumference() {
        return 2 * PI * radius;
    }

    @Override
    public void draw() {
        System.out.println("目前正在画一个圆形");
    }

    /**
     * 获取
     * @return radius
     */
    public double getRadius() {
        return radius;
    }

    /**
     * 设置
     * @param radius
     */
    public void setRadius(double radius) {
        this.radius = radius;
    }

}
